package com.tx.admin.util.web;

import javax.servlet.http.HttpServletRequest;

public class ReqUtil {


	   public static boolean isAjaxRequest(HttpServletRequest request) {
	       String requestedWith = request.getHeader("x-requested-with");
	       if (requestedWith != null && requestedWith.equalsIgnoreCase("XMLHttpRequest")) {
	           return true;
	       } else {
	           return false;
	       }
	   }
	   

}
